// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '备料单',
        name: 'FLH_PrepareMetailModel',
        url: "/FLH_PrepareMetailModel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"OrderNumber":"","WorkOrderCode":"","Status":"","PrepareMetailUserName":"","PrepareMetailTime":"","CreateTime":""};
    const editFormOptions = [[{"title":"单号","required":true,"field":"OrderNumber","type":"text"}],
                              [{"title":"工单号","required":true,"field":"WorkOrderCode","type":"text"}],
                              [{"dataKey":"FLH_备料状态","data":[],"title":"状态","required":true,"field":"Status","type":"radio"}],
                              [{"title":"备料人","field":"PrepareMetailUserName","type":"text"}],
                              [{"title":"备料时间","field":"PrepareMetailTime","type":"datetime"}],
                              [{"title":"创建时间","required":true,"field":"CreateTime","type":"datetime"}]];
    const searchFormFields = {"OrderNumber":"","WorkOrderCode":"","Status":"","PrepareMetailTime":""};
    const searchFormOptions = [[{"title":"单号","field":"OrderNumber","type":"="},{"title":"工单号","field":"WorkOrderCode","type":"="},{"dataKey":"FLH_备料状态","data":[],"title":"状态","field":"Status","type":"="},{"title":"备料时间","field":"PrepareMetailTime","type":"datetime"}]];
    const columns = [{field:'Id',title:'唯一编码',type:'bigint',sort:true,width:110,readonly:true,require:true,align:'left'},
                       {field:'CreateUserId',title:'CreateUserId',type:'bigint',width:110,hidden:true,align:'left'},
                       {field:'UpdateUserId',title:'UpdateUserId',type:'bigint',width:110,hidden:true,align:'left'},
                       {field:'CreatedUserName',title:'CreatedUserName',type:'string',width:110,hidden:true,align:'left'},
                       {field:'UpdatedUserName',title:'UpdatedUserName',type:'string',width:110,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'UpdateTime',title:'UpdateTime',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'IsDelete',title:'IsDelete',type:'sbyte',width:110,hidden:true,align:'left'},
                       {field:'RedundancyColumn1',title:'RedundancyColumn1',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn2',title:'RedundancyColumn2',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn3',title:'RedundancyColumn3',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn4',title:'RedundancyColumn4',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn5',title:'RedundancyColumn5',type:'string',width:120,hidden:true,align:'left'},
                       {field:'OrderNumber',title:'单号',type:'string',width:110,require:true,align:'left'},
                       {field:'WorkOrderCode',title:'工单号',type:'string',width:110,require:true,align:'left'},
                       {field:'Status',title:'状态',type:'string',bind:{ key:'FLH_备料状态',data:[]},width:110,require:true,align:'left'},
                       {field:'PrepareMetailUserName',title:'备料人',type:'string',width:110,align:'left'},
                       {field:'PrepareMetailTime',title:'备料时间',type:'datetime',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}